package com.gws.ievent.db.disign.observer.event.creted.impl;

import com.gws.ievent.db.disign.observer.event.creted.EventCreatedObserver;
import com.gws.ievent.db.model.EventModel;
import com.gws.ievent.service.EventManageService;
import org.springframework.stereotype.Service;

/**
 * @author song
 * @date 2022/10/23 9:54
 */
@Service
public class IEventAddObserver implements EventCreatedObserver {
    /**
     * 更新
     *
     * @param model
     */
    @Override
    public void update(EventModel model) {
        EventManageService.add(model);
    }
}
